package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.CWaybillContacts;
import cn.huiyunche.base.service.model.SysAdminUser;

import java.util.List;

/**
 * 运单交接人信息
 *
 * @author Administrator
 */
public interface CWaybillContactsService {

    /**
     * 单条写入交接人信息
     *
     * @param record
     * @return
     */
    int insertSelective(CWaybillContacts record);

    /**
     * 批量插入交接人信息
     *
     * @param list
     */
    int batchInsert(List<CWaybillContacts> list);

    /**
     * 根据运单ID，交接人类型查询交接人数据
     *
     * @param waybillId
     * @param type
     * @return
     * @throws Exception
     */
    List<CWaybillContacts> selectContacts(Long waybillId, Integer type);

    /**
     * 新增交接单信息
     *
     * @param contacts
     * @return
     * @throws Exception
     */
    int add(CWaybillContacts contacts, SysAdminUser adminUser) throws Exception;

    /**
     * 同城 上报司机信息
     *
     * @param contacts
     * @param adminUser
     * @return
     */
    int addVeneerContacts(CWaybillContacts contacts, SysAdminUser adminUser);

}
